oxenstored: support commit history tracking
authorJonathan Davies <jonathan.davies@citrix.com>
Tue, 14 Mar 2017 13:20:07 +0000 (13:20 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 5 Apr 2017 14:10:42 +0000 (15:10 +0100)
commit567051b61858424ec8725efe23641d12ee69791c
tree88e523799fc58079d4c76bc6bc814ed42be2009c
parent4f4596a0e90ebf7ed971b1949244e3b2cbed5d11
oxenstored: support commit history tracking

Add ability to track xenstore tree operations -- either non-transactional
operations or committed transactions.

For now, the call to actually retain commits is commented out because history
can grow without bound.

For now, we call record_commit for all non-transactional operations. A
subsequent patch will make it retain only the ones with side-effects.

Reported-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Jonathan Davies <jonathan.davies@citrix.com>
Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Reviewed-by: Christian Lindig <christian.lindig@citrix.com>
tools/ocaml/xenstored/Makefile
tools/ocaml/xenstored/history.ml [new file with mode: 0644]
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/xenstored.ml